import request from '@/utils/request.js'


const baseUrl = "http://localhost:9001"
// const baseUrl = "http://172.20.10.2:9001"


/**
 * 登录
 * @param {*}mobile,code
 */
export function login (data) {
  return request({
    url: baseUrl+'/login',
    method: 'post',
    data
  })
}

export function register(data){
  return request({
    url: baseUrl + '/register',
    method: 'post',
    data
  })
}